# Contributor: omni <omni@gitlab.alpinelinux.org>
# Maintainer: omni <omni@gitlab.alpinelinux.org>
pkgname=uni
pkgver=2.5.1
pkgrel=0
pkgdesc="Query the Unicode database from the commandline"
url="https://github.com/arp242/uni"
license="MIT"
arch="all"
makedepends="go"
options="!check" # no test files
source="$pkgname-$pkgver.tar.gz::https://github.com/arp242/uni/archive/v$pkgver.tar.gz"

export GOPATH="$srcdir"
export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw"

build() {
	go build -v .
}

check() {
	go test ./...
}

package() {
	install -Dm0755 "$pkgname" -t "$pkgdir"/usr/bin
}

sha512sums="
89857a64e85904c32e0381f3db87dff93e5d2a89930fbf0de05bea32c4ce47e2756be7881cd09a4799f52e860df9ae8bdf993805ecf26954e58e8c146d30b24e  uni-2.5.1.tar.gz
"
